//
//  CCDBaseView.h
//  operativeSide
//
//  Created by 马腾飞 on 16/6/6.
//  Copyright © 2016年 com.caocaod.www. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSString+Helper.h"
#import "CCDHttpBaseTool.h"
#import "AESSecurityTool.h"
#import "NSArray+Helper.h"
#import "NSDictionary+Helper.h"
#import "UIView+Toast.h"
#import "RSAUtil.h"

typedef void(^SuccessBlock)(id JSON);
typedef void(^FaithBlock)(NSError *error);

@interface CCDBaseView : UIView

@property (nonatomic, strong) SuccessBlock successBlock;
@property (nonatomic, strong) FaithBlock faithBlock;
@property (nonatomic, assign) NSInteger index;

- (void)createAesKey;

- (void)postWithUrl:(NSString *)url params:(NSDictionary *)params progressView:(UIProgressView *)progressView successBlock:(SuccessBlock)httpSuccess faithBlock:(FaithBlock)httpFaith;

@end
